package com.xinqi.modules.prepare.question.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.prepare.question.domain.PrepareQuestionFolderEntity;
import com.xinqi.modules.prepare.question.dto.req.PrepareQuestionFolderQueryDTO;
import com.xinqi.modules.prepare.question.dto.rsp.PrepareQuestionFolderResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 备课区试题夹数据层
 *
 * @author: system
 * @date: 2023/03/19
 */
@Mapper
public interface PrepareQuestionFolderMapper extends SuperMapper<PrepareQuestionFolderEntity> {
    Page<PrepareQuestionFolderResultDTO> findPage(Page<Object> page, @Param("dto") PrepareQuestionFolderQueryDTO query);

    List<PrepareQuestionFolderResultDTO> findList(@Param("dto") PrepareQuestionFolderQueryDTO query);
}
